import {REQUEST} from 'miniprogram-request';

REQUEST.Defaults.baseURL = "http://47.103.89.201:3000/";
// app.ts
App<IAppOption>({
    globalData: {},
    onLaunch()
    {
        wx.getSystemInfo({
            success: e =>
            {
                this.globalData.StatusBar = e.statusBarHeight;
                let capsule = wx.getMenuButtonBoundingClientRect();
                if (capsule)
                {
                    this.globalData.Custom = capsule;
                    this.globalData.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight;
                }
                else
                {
                    this.globalData.CustomBar = e.statusBarHeight + 50;
                }
            }
        })
    }
});